<html>
		<head>
		<meta charset="UTF-8">
		<title>修改用户信息</title>
		<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
		</head>
		<?php 
				$row=$data['user'];
		 ?>
		<body>
				<ul class="nav nav-tabs">
  					<li role="presentation"><a href="admin.php?c=user&m=listusers">用户列表</a></li>
  					<li role="presentation"><a href="admin.php?c=user&m=regUser">用户注册</a></li>
  					<li role="presentation"><a href="admin.php?c=music&m=listmusics">视频列表</a></li>
  					<li role="presentation"><a href="admin.php?c=music&m=regmusic">添加视频</a></li>
				</ul>
		<form class="form-horizontal"  method="post" action="admin.php?c=user&m=updateuser" enctype="multipart/form-data">
		<input type="hidden" name="uid" value="<?php echo $row['uid']; ?>">
		<input type="hidden" name="oldpic" value="<?php echo $row['pic']; ?>">
		<h3><center>用户修改</center></h3>
		<div class="form-group">
   	 		<label for="inputname" class="col-md-3 control-label">姓名</label>
   	 		<div class="col-md-6">
        	<input type="text" class="form-control" id="inputname" placeholder="姓名" name="username" value=<?php  echo $row['uname'];  ?>>
   	   	    </div>
  		</div>
		
  		<div class="form-group">
   	 		<label for="inlineRadio" class="col-md-3 control-label">性别</label>
   	 		<div class="col-md-6">
        	<label class="radio-inline">
 			<input type="radio" name="gender" id="inlineRadio1" value="0" <?php if ($row['gender']==0){echo "checked";}?>>男
			</label>
			<label class="radio-inline">
 			<input type="radio" name="gender" id="inlineRadio2" value="1" <?php if ($row['gender']==1){echo "checked";}?>>女
			</label>
   	    	</div>
   	    </div>

  		<div class="form-group">
   	 		<label for="inputdate" class="col-md-3 control-label">生日</label>
   	 		<div class="col-md-6">
        	<input type="date" class="form-control" id="inputdate" name="birthdate" value=<?php  echo $row['birthdate'];  ?>>
   	    	</div>
  		</div>

 		<div class="form-group">
   	 		<label for="inlineCheckbox" class="col-md-3 control-label">爱好</label>
   	 		<div class="col-md-6">
      	 	<label class="checkbox-inline">
 			<input type="checkbox" id="inlineCheckbox1" name="hobby[]"  value="旅游" <?php  if(strstr($row['hobby'],'旅游')) echo 'checked';  ?>>旅游
			</label>
			<label class="checkbox-inline">
 			<input type="checkbox" id="inlineCheckbox1" name="hobby[]"  value="登山" <?php  if(strstr($row['hobby'],'登山')) echo 'checked';  ?>>登山
			</label>
			<label class="checkbox-inline">
 			<input type="checkbox" id="inlineCheckbox1" name="hobby[]"  value="上网" <?php  if(strstr($row['hobby'],'上网')) echo 'checked';  ?>>上网
			</label>
			<label class="checkbox-inline">
 			<input type="checkbox" id="inlineCheckbox1" name="hobby[]"  value="游泳" <?php  if(strstr($row['hobby'],'游泳')) echo 'checked';  ?>>游泳
			</label>
   	   		</div>
  		</div>

  		<div class="form-group">
   	 		<label for="inputdegree" class="col-md-3 control-label">学历</label>
   	 		<div class="col-md-6">
        	<select class="form-control" name="degree" id="">
				<option value="1"<?php if ($row['degree']==1) { echo "selected";} ?>>高中</option>
				<option value="2"<?php if ($row['degree']==2) { echo "selected";} ?>>大学</option>
				<option value="3"<?php  if($row['degree']==3) {echo 'selected';}  ?>>研究生</option>	
				<option value="4"<?php  if($row['degree']==4) {echo 'selected';}  ?>>博士</option>	
			</select>
   	   	    </div>
  	 	</div>

  		<div class="form-group">
   	 		<label for="inputintro" class="col-md-3 control-label">自我介绍</label>
   	 		<div class="col-md-6">
        	<textarea class="form-control" rows="3" id="inputintro"  placeholder="自我介绍" name="intro"><?php  echo $row['intro'];  ?></textarea>
   	    	</div>
  		</div>
		
	
		
		<div class="form-group">
   	 		<label class="col-md-3 control-label">原头像</label>
   	 		<div class="col-md-6">
   		 	<img class="img-circle"  src="./photos/<?php echo $row['pic']; ?>" width="80" height="80" alt="">	
   	   	    </div>   	   	   
  		</div>

		<div class="form-group">
   	 		<label class="col-md-3 control-label">头像</label>
   	 		<div class="col-md-6">
   		 	<input type="file" name="pic">	
   	   	    </div>   	   	   
  		</div>

		<div class="form-group">
    		<div class="col-sm-offset-3 col-sm-6"> <!-- 向右位移两个方格 -->
     		<button type="submit" class="btn btn-default">修改</button>
   			</div>
		</div>

		









<!-- 
		<tr>
			<td>性别</td>
			<td><input type="radio" name="gender" value="0" <?php if ($row['gender']==0){echo "checked";}?>>男默认选中
				<input type="radio" name="gender" value="1" <?php if ($row['gender']==1){echo "checked";}?>>女
			</td>
		</tr>
		<tr>
			<td>生日</td>
			<td><input type="date" name="birthdate" value=<?php  echo $row['birthdate'];  ?>></td>
		</tr>
		<tr>
			<td>爱好</td>
			<td>
			<input type="checkbox" name="hobby[]" value="旅游" <?php  if(strstr($row['hobby'],'旅游')) echo 'checked';  ?>>旅游
			<input type="checkbox" name="hobby[]" value="登山" <?php  if(strstr($row['hobby'],'登山')) echo 'checked';  ?>>登山
			<input type="checkbox" name="hobby[]" value="上网" <?php  if(strstr($row['hobby'],'上网')) echo 'checked';  ?>>上网
			<input type="checkbox" name="hobby[]" value="游泳" <?php  if(strstr($row['hobby'],'游泳')) echo 'checked';  ?>>游泳
			</td>
		</tr>
		<td>学历</td>
		<td>
			<select name="degree" id="">
				<option value="1"<?php if ($row['degree']==1) { echo "selected";} ?>>高中</option>
				<option value="2"<?php if ($row['degree']==2) { echo "selected";} ?>>大学</option>
				<option value="3"<?php  if($row['degree']==3) {echo 'selected';}  ?>>研究生</option>	
				<option value="4"<?php  if($row['degree']==4) {echo 'selected';}  ?>>博士</option>	
			</select>
		</td>
	
	
		<tr>
			<td>自我介绍</td>
			<td>
				<textarea name="intro" id="" cols="30" rows="10" ><?php  echo $row['intro'];  ?></textarea>
			</td>
		</tr>
		<tr>
			<td>头像</td>
			<td><input type="file" name="pic"> 原头像：<img  src="./photos/<?php echo $row['pic']; ?>" width="80" height="80" alt=""></td>
		</tr>

		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="修改">
			</td>
		</tr>
	</form>
	
</body>
</html>
		 -->